package com.ruoyi.app.domain.vo;

import java.util.Date;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.excel.annotation.ExcelDictFormat;
import com.ruoyi.common.excel.convert.ExcelDictConvert;
import lombok.Data;

import java.io.Serializable;


/**
 * 卡片管理视图对象
 *
 * @author Zach
 * @date 2023-11-14
 */
@Data
@ExcelIgnoreUnannotated
public class AppUserCardVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 卡号
     */
    @ExcelProperty(value = "卡号")
    private String cardNo;

    /**
     * 预留手机号
     */
    @ExcelProperty(value = "预留手机号")
    private String phone;

    /**
     * 卡片类型
     */
    @ExcelProperty(value = "卡片类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=储蓄卡,1=信用卡")
    private Long cardType;

    /**
     * 卡片所属银行   字典表加载
     */
    @ExcelProperty(value = "卡片所属银行", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "bank_list")
    private String cardBank;

    /**
     * 卡片到期时间
     */
    @ExcelProperty(value = "卡片到期时间")
    private String cardDate;

    /**
     * 卡片背签
     */
    @ExcelProperty(value = "卡片背签")
    private String cardEndorse;

    @ExcelProperty(value = "开户支行")
    private String openingBranch;

    private Long userId;
}
